#include <stdio.h>
int main()
{
    int cels, fahr;
    while(scanf("%d", &cels) != EOF){
        fahr = (cels*9/5.0)+32;
        printf("%d\n", fahr);
    }
    return 0;
}